package com.etc.medical.client;

import com.etc.common.utils.Result;
import com.etc.cure.entity.Outpatient;
import com.etc.medical.breaker.OutpatientBreak;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "sp-cure",fallback = OutpatientBreak.class)
public interface OutpatientClient {
    @RequestMapping("/outpatient/queryOutpatient")
    Result queryOutpatient(@RequestParam("docId") String docId);

    @RequestMapping("/outpatient/insertOutpatient")
    Result insertOutpatient(@RequestBody Outpatient outpatient);

    @RequestMapping("/outpatient/updateOutpatient")
    Result updateOutpatient(@RequestBody Outpatient outpatient);

    @RequestMapping("/outpatient/queryOutpatientByOutpatientId")
    Result queryOutpatientByOutpatientId(@RequestParam("outPatientId") String outPatientId);
}
